export default {
  isEmpty(str) {
    return str === undefined || str === null || str === ''
  },
  hasLength(str) {
    return str !== null && str !== undefined && str.length !== 0
  },
  isEmptyArray(array) {
    if (array === undefined) {
      return true
    }
    if (array === null) {
      return true
    }
    return array.length === 0
  },
  trimHasLength(str) {
    return str && this.hasLength(str.toString().replace(/\s/g, ''))
  }
}
